package com.example.day05;

public class Rect  extends  Shape{
    public  double  len;
    public  double width;

    public Rect() {
    }

    public Rect(double len, double width) {
        this.len = len;
        this.width = width;
    }

    @Override
    public double area() {


        return len*width;
    }

    @Override
    public double girth() {


        return len*2+width*2;
    }
}
